package net.wanho.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 角色权限表
 * @TableName role_auth
 */
@TableName(value ="role_auth")
@Data
@NoArgsConstructor
public class RoleAuth {
    /**
     * 角色权限id
     */
    @TableId(type = IdType.AUTO)
    private Integer roleAuthId;

    /**
     * 角色id
     */
    private Integer roleId;

    /**
     * 权限id
     */
    private Integer authId;

    public RoleAuth(Integer roleId, Integer authId) {
        this.roleId = roleId;
        this.authId = authId;
    }
}